<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>语音评测</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <div class="container">
        <div class="word-display">
            <h2>Apple</h2>
        </div>
        <div class="controls-container">
            <div class="control-button-container">
                <button id="playOriginalSound" class="control-button">
                    <span class="icon-speaker"></span>
                </button>
                <span>听原音</span>
            </div>
            <div class="recording-area">
                <svg class="progress-ring" width="150" height="150">
                    <circle
                        class="progress-ring__circle"
                        stroke="#e6e6e6"
                        stroke-width="6"
                        fill="transparent"
                        r="69"
                        cx="75"
                        cy="75"/>
                    <circle
                        class="progress-ring__circle--progress"
                        stroke="#4CAF50"
                        stroke-width="6"
                        fill="transparent"
                        r="69"
                        cx="75"
                        cy="75"/>
                </svg>
                <button id="recordButton" class="record-button">
                    <span class="mic-icon"></span>
                </button>
                <div id="tooltip" class="tooltip">
                    <div class="tooltip-content">
                        <span>录音中...</span>
                        <button id="stopButton">停止录音</button>
                    </div>
                    <div class="tooltip-shortcut">
                        快捷键：空格键
                    </div>
                </div>
            </div>
            <div class="control-button-container">
                <button id="playRecording" class="control-button">
                    <span class="icon-play"></span>
                </button>
                <span>听自己</span>
            </div>
        </div>
        <div id="ratingArea" class="rating-area">
            <span class="star" data-value="1">☆</span>
            <span class="star" data-value="2">☆</span>
            <span class="star" data-value="3">☆</span>
            <span class="star" data-value="4">☆</span>
            <span class="star" data-value="5">☆</span>
        </div>
    </div>
    <script src="script.js"></script>
</body>
</html>